//
// DotNetNuke - http://www.dotnetnuke.com
// Copyright (c) 2002-2010
// by Perpetual Motion Interactive Systems Inc. ( http://www.perpetualmotion.ca )
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and 
// to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions 
// of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
// DEALINGS IN THE SOFTWARE.
//

using System;
using System.Collections.Specialized;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Users;
using DotNetNuke.Security.Membership;
namespace DotNetNuke.Services.Authentication
{
	public class UserAuthenticatedEventArgs : EventArgs
	{
		private bool _Authenticated = true;
		private string _AuthenticationType = Null.NullString;
		private bool _AutoRegister = Null.NullBoolean;
		private UserLoginStatus _LoginStatus = UserLoginStatus.LOGIN_FAILURE;
		private string _Message = Null.NullString;
		private NameValueCollection _Profile = new NameValueCollection();
		private UserInfo _User = null;
		private string _UserToken = Null.NullString;
		public UserAuthenticatedEventArgs(UserInfo user, string token, UserLoginStatus status, string type)
		{
			_User = user;
			_LoginStatus = status;
			_UserToken = token;
			_AuthenticationType = type;
		}
		public bool Authenticated {
			get { return _Authenticated; }
			set { _Authenticated = value; }
		}
		public string AuthenticationType {
			get { return _AuthenticationType; }
			set { _AuthenticationType = value; }
		}
		public bool AutoRegister {
			get { return _AutoRegister; }
			set { _AutoRegister = value; }
		}
		public UserLoginStatus LoginStatus {
			get { return _LoginStatus; }
			set { _LoginStatus = value; }
		}
		public string Message {
			get { return _Message; }
			set { _Message = value; }
		}
		public NameValueCollection Profile {
			get { return _Profile; }
			set { _Profile = value; }
		}
		public UserInfo User {
			get { return _User; }
			set { _User = value; }
		}
		public string UserToken {
			get { return _UserToken; }
			set { _UserToken = value; }
		}
	}
}
